import request from "../request";

const rootUrl = "/common/"

export const FchangedPwd = (data) => {
    return request("post",rootUrl+"FchangePwd",data,"form")
}
export const Register = (data) => {
    return request("post",rootUrl+"Register",data,'form')
}
export const captcha = (data) => {
    return request("get",rootUrl+"captcha",data)
}
export const changePwd = (data) => {
    return request("post",rootUrl+"changePwd",data,'form')
}
export const forgetPwd = (data) => {
    return request("post",rootUrl+"forgetPwd",data,'form')
}

export const getUser = () => {
    return request("get",rootUrl+"getUser")
}

// export const refresh = (data) => {
//     return request("post",rootUrl+"refresh",data)
// }
export const login = (data) => {
    return request("post",rootUrl+"userLogin",data,'form')
}
export const userLogout = (data) => {
    return request("post",rootUrl+"userLogout",data,'form')
}
export const userRegister = (data) => {
    return request("post",rootUrl+"userRegister",data,'form')
}
